package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SendSalaryMapper;
import com.ruoyi.system.domain.SendSalary;
import com.ruoyi.system.service.ISendSalaryService;
import com.ruoyi.common.core.text.Convert;

/**
 * 工资发放Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-16
 */
@Service
public class SendSalaryServiceImpl implements ISendSalaryService 
{
    @Autowired
    private SendSalaryMapper sendSalaryMapper;

    /**
     * 查询工资发放
     * 
     * @param id 工资发放主键
     * @return 工资发放
     */
    @Override
    public SendSalary selectSendSalaryById(Long id)
    {
        return sendSalaryMapper.selectSendSalaryById(id);
    }

    /**
     * 查询工资发放列表
     * 
     * @param sendSalary 工资发放
     * @return 工资发放
     */
    @Override
    public List<SendSalary> selectSendSalaryList(SendSalary sendSalary)
    {
        return sendSalaryMapper.selectSendSalaryList(sendSalary);
    }

    /**
     * 新增工资发放
     * 
     * @param sendSalary 工资发放
     * @return 结果
     */
    @Override
    public int insertSendSalary(SendSalary sendSalary)
    {
        return sendSalaryMapper.insertSendSalary(sendSalary);
    }

    /**
     * 修改工资发放
     * 
     * @param sendSalary 工资发放
     * @return 结果
     */
    @Override
    public int updateSendSalary(SendSalary sendSalary)
    {
        return sendSalaryMapper.updateSendSalary(sendSalary);
    }

    /**
     * 批量删除工资发放
     * 
     * @param ids 需要删除的工资发放主键
     * @return 结果
     */
    @Override
    public int deleteSendSalaryByIds(String ids)
    {
        return sendSalaryMapper.deleteSendSalaryByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除工资发放信息
     * 
     * @param id 工资发放主键
     * @return 结果
     */
    @Override
    public int deleteSendSalaryById(Long id)
    {
        return sendSalaryMapper.deleteSendSalaryById(id);
    }
}
